<?php

namespace app\api\validate;

use think\Validate;

class UserLoginValidate extends Validate
{
    protected $rule =   [
        'type'  => 'require|in:1,2',
        'code'   => 'require|max:255',
    ];
}